//
//  ViewController.m
//  DemoNetworkManager
//
//  Created by 唐可雄 on 16/7/20.
//  Copyright © 2016年 swustyc. All rights reserved.
//

#import "ViewController.h"

#import "YCNetworkManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSString *url = @"http://192.168.0.2:8080/page/course/select";
    NSDictionary *params = @{@"weekly":@(0),
                             @"teacherName":@""};
    [[YCNetworkManager sharedInstance] accessServer:url byPost:params block:^(NSError *error, NSDictionary *result) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
